/** @odoo-module */

import * as spreadsheet from "@odoo/o-spreadsheet";
const { topbarMenuRegistry } = spreadsheet.registries;

//--------------------------------------------------------------------------
// Spreadsheet context menu items
//--------------------------------------------------------------------------


topbarMenuRegistry.addChild("convert_to_records", ["data"], {
    name: "应用数据",
    sequence: 2,
    isVisible: (env) => !env.isDashboardSpreadsheet,
    execute: (env) => env.convertToRecords(),
});
